/**
 * Ray.cpp
 *
 * Author:
 *   Chris Herbison
 *
 * Description:
 *   Class that represents a ray (vector of irrelevant magnitude) in a 3-D area.
 */

#include "Ray.h"

/*
 * Constructor for the Ray class.
 *
 * _origin - The point where the ray starts.
 * _direction - The direction in which the ray travels.
 */
Ray::Ray(Point3 _origin, Vector3 _direction): origin(_origin),
                                              direction(_direction){
}

/*
 * Copy constructor for the Ray class.
 *
 * r2 - The ray to copy from.
 */
Ray::Ray(const Ray& r2){
     origin = r2.origin;
     direction = r2.direction;
}
